JTree

Client properties:

Property

Type Notes

Quaqua.Tree
.style

java.lang.String Values: "plain", "striped"
Size styles:

Client property: Quaqua.Tree.style

The Quaqua Look and Feel supports trees with plain style and with striped style (aka alternating row colors).

The picture below shows the two styles.

Quaqua Look and Feel - striped JTable
You can specify the desired style by setting the client property Quaqua.Tree.style to striped or to plain. If you don't specify a value, the plain style is used.
 

myTree.putClientProperty(

   "Quaqua.Tree.style", "striped"

);

 

Implementing a TreeCellRenderer

If you implement a TreeCellRenderer on your own, make sure that the renderer component is non-opaque. If your renderer component is opaque, the component obscurs the stripes of a striped tree.